﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ForumMaster.Master" AutoEventWireup="true"
    CodeBehind="ForumDisplay.aspx.cs" Inherits="FilStartUps.Forum.ForumDisplay" %>

<%@ Register Src="../Controls/FilStartUps_PageNav.ascx" TagName="FilStartUps_PageNav"
    TagPrefix="uc1" %>
<asp:Content ID="Nav" ContentPlaceHolderID="MainNav" runat="server">
    <uc1:FilStartUps_PageNav ID="FilStartUps_PageNav1" runat="server" />
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Main" ContentPlaceHolderID="ContentForumDisplay" runat="server">
    <div class="location">
        <a href="#" runat="server" enableviewstate="true">
            <img src="../Content/images/feed-icon.png" alt="main topic - RSS" /></a>
    </div>
    <asp:Repeater runat="server" ID="rpforumgroup">
        <HeaderTemplate>
            <table style="width: 100%;" cellspacing="0" cellpadding="11" class="horizseparated">
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td class="transparentbg" style="border: none; padding-top: 15px;" colspan="4">
                    <h1>
                        <asp:Label runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "forumgroupname") %>'></asp:Label>
                    </h1>
                </td>
            </tr>
            <asp:Repeater runat="server" OnItemCommand="rpForumList_ItemCommand" ID="rpForumList"
                DataSource='<%# GetForum(DataBinder.Eval(Container.DataItem, "forumgroupidPK").ToString()) %>'>
                <ItemTemplate>
                    <tr>
                        <!-- IMAGE ICON -->
                        <td style="width: 70%;">
                            <h2>
                                <asp:LinkButton runat="server" CommandName="SelectRow" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "forumidPK") %>'
                                    ID="lbforumtitle" Text='<%# DataBinder.Eval(Container.DataItem, "forumtitle") %>'></asp:LinkButton>
                                <br />
                                <span class="gray">
                                    <asp:Label runat="server" ID="lbforumdescription" Text='<%# DataBinder.Eval(Container.DataItem, "forumdescription") %>'></asp:Label></span>
                            </h2>
                        </td>
                        <td>
                            <asp:Label runat="server" ID="lbThreads" CssClass="gray" EnableViewState="true">Thread</asp:Label>
                            <br />
                            <asp:Label runat="server" ID="lbthreadcount" Text='<%# DataBinder.Eval(Container.DataItem, "totalthread") %>'></asp:Label>
                        </td>
                        <td>
                            <asp:Label runat="server" ID="lbviews" CssClass="gray" EnableViewState="false">Views</asp:Label>
                            <br />
                            <asp:Label runat="server" ID="lbtotalviews" Text='<%# DataBinder.Eval(Container.DataItem, "views") %>'></asp:Label>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
</asp:Content>
